CASE STUDY

Case Study1:

 

FileGUI can access directories to select input and output files. This provides the basis for many utilities that analyze input files and prepare output report files. The GUI consists of two layers. The first layer splits the panel into two columns, one for file selection, the other for run-time function buttons. The next layers consist of two rows (left hand) and a single column (right). File choosers and run-time buttons are the only control objects required in this simple design. The RUN button should be deactivated (grayed out) until the input file is selected. The file chooser should not allow directories to be selected. The input file must already exist. The output selector should have a default of report.txt and allow a new file to be created. The GUI looks as follows:

Case Study 2:

 

Batch GUI allows multiple input files to be selected. Output files will be created with the same names as the input files but with a different extension (set using OPTIONS). The interface consists of two layers. The first layer splits the panel into two columns, one for buttons, the other for a list of selected files. In addition to buttons and a listbox, a file chooser selected by the ADD button is required. The file chooser should not allow directories to be selected. Duplicated entries should not occur. Bgui adds the control buttons as an array set with tooltips.

 

 

 

a tour of SWING by Mrs.s.sharmila banu & MRs.R.jayabharahti